<div class="title"><?php echo __('Tapkite mūsų komandos nariu'); ?></div>

<div class="naujiena">
    <?php use_helper('Object') ?>
    
    <?php echo form_tag('member/update') ?>
    
    <?php echo object_input_hidden_tag($member, 'getId') ?>
    
    <table class="form">
    <tbody>
    
    <?php if( ($sError = $sf_request->getError('name')) ): ?>
    <tr>
    <th></th>
    <td class='err_msg'><?php echo $sError ?></td>
    </tr>
    <?php endif; ?>
    
    <tr>
    <th><?php echo __('Name'); ?>:</th>
    <td><?php echo object_input_tag($member, 'getName', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>
    <tr>
    <th><?php echo __('Surname') ?>:</th>
    <td><?php echo object_input_tag($member, 'getSurname', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>
    
    <tr>
    <th><?php echo __('Address') ?>:</th>
    <td><?php echo object_input_tag($member, 'getAddress', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>
    

    <?php if( ($sError = $sf_request->getError('phone_cell')) ): ?>
    <tr>
    <th></th>
    <td class='err_msg'><?php echo $sError ?></td>
    </tr>
    <?php endif; ?>
    
    <tr>
    <th><?php echo __('cell phone') ?>:</th>
    <td><?php echo object_input_tag($member, 'getPhoneCell', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>
    
    <tr>
    <th><?php echo __('home phone') ?>:</th>
    <td><?php echo object_input_tag($member, 'getPhoneHome', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>
    
    <tr>
    <th><?php echo __('work phone') ?>:</th>
    <td><?php echo object_input_tag($member, 'getPhoneWork', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>
    
    <tr>
    <th><?php echo __('fax') ?>:</th>
    <td><?php echo object_input_tag($member, 'getFax', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>
    

    <?php if( ($sError = $sf_request->getError('email')) ): ?>
    <tr>
    <th></th>
    <td class='err_msg'><?php echo $sError ?></td>
    </tr>
    <?php endif; ?>
    
    <tr>
    <th><?php echo __('E-mail') ?>:</th>
    <td><?php echo object_input_tag($member, 'getEmail', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>


    <tr>
    <th><?php echo __('Personal number') ?>:</th>
    <td><?php echo object_input_tag($member, 'getPersNum', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>


    <tr>
    <th><?php echo __('Education') ?>:</th>
    <td><?php echo object_input_tag($member, 'getEducation', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>

    <tr>
    <th><?php echo __('employee') ?>:</th>
    <td><?php echo object_input_tag($member, 'getEmployee', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>

    <tr>
    <th><?php echo __('position') ?>:</th>
    <td><?php echo object_input_tag($member, 'getPosition', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>

    <tr>
    <th><?php echo __('languages') ?>:</th>
    <td><?php echo select_tag('languages', options_for_select(array(MyConstants::FORM_LNG_GOOD => __('lng_good'), MyConstants::FORM_LNG_SATISFACTORY => __('lng_satisfactory')), $member->getLanguages())); ?></td>
    </tr>

    <tr>
    <th><?php echo __('Previous politics') ?>:</th>
    <td><?php echo object_textarea_tag($member, 'getPreviousPolitics', array (
    'cols' => 45
    , 'rows' => 6,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>

    <tr>
    <td><?php echo __('How would you participate?'); ?></td>
    </tr>

    <tr>
    <th>1. <?php echo __('Participate in comitee'); ?>:</th>
    <td>
        <table>
        <tr><th><?php echo __('environment');?> </th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_ENVIRONMENT, !empty($arComitee[MyConstants::FORM_COMITEE_ENVIRONMENT]));?></td></tr>
        <tr><th><?php echo __('finance');?> </th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_FINANCE, !empty($arComitee[MyConstants::FORM_COMITEE_FINANCE]));?></td></tr>
        <tr><th><?php echo __('security');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_SECURITY, !empty($arComitee[MyConstants::FORM_COMITEE_SECURITY]));?></td></tr>
        <tr><th><?php echo __('culture');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_CULTURE, !empty($arComitee[MyConstants::FORM_COMITEE_CULTURE]));?></td></tr>
        <tr><th><?php echo __('social security and labor');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_SOCIAL_SECURITY, !empty($arComitee[MyConstants::FORM_COMITEE_SOCIAL_SECURITY]));?></td></tr>
        <tr><th><?php echo __('communication');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_COMMUNICATION, !empty($arComitee[MyConstants::FORM_COMITEE_COMMUNICATION]));?></td></tr>
        <tr><th><?php echo __('health');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_HEALTH, !empty($arComitee[MyConstants::FORM_COMITEE_HEALTH]));?></td></tr>
        <tr><th><?php echo __('education');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_EDUCATION, !empty($arComitee[MyConstants::FORM_COMITEE_EDUCATION]));?></td></tr>
        <tr><th><?php echo __('science');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_SCIENCE, !empty($arComitee[MyConstants::FORM_COMITEE_SCIENCE]));?></td></tr>
        <tr><th><?php echo __('justice');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_JUSTICE, !empty($arComitee[MyConstants::FORM_COMITEE_JUSTICE]));?></td></tr>
        <tr><th><?php echo __('economy');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_ECONOMY, !empty($arComitee[MyConstants::FORM_COMITEE_ECONOMY]));?></td></tr>
        <tr><th><?php echo __('foreign afairs');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_FOREIGN_AFAIRS, !empty($arComitee[MyConstants::FORM_COMITEE_FOREIGN_AFAIRS]));?></td></tr>
        <tr><th><?php echo __('inner afairs');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_INNER_AFAIRS, !empty($arComitee[MyConstants::FORM_COMITEE_INNER_AFAIRS]));?></td></tr>
        <tr><th><?php echo __('agriculture');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_AGRICULTURE, !empty($arComitee[MyConstants::FORM_COMITEE_AGRICULTURE]));?></td></tr>
        <tr><th><?php echo __('regional problems');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_REGIONAL_PROBLEMS, !empty($arComitee[MyConstants::FORM_COMITEE_REGIONAL_PROBLEMS]));?></td></tr>
        <tr><th><?php echo __('information society');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_INFORMATION_SOCIETY, !empty($arComitee[MyConstants::FORM_COMITEE_INFORMATION_SOCIETY]));?></td></tr>
        <tr><th><?php echo __('strategic');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_STRATEGIC, !empty($arComitee[MyConstants::FORM_COMITEE_STRATEGIC]));?></td></tr>
        <tr><th><?php echo __('national societies');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_NATIONAL_SOCIETIES, !empty($arComitee[MyConstants::FORM_COMITEE_NATIONAL_SOCIETIES]));?></td></tr>
        <tr><th><?php echo __('youth and sports');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_YOUTH_AND_SPORT, !empty($arComitee[MyConstants::FORM_COMITEE_YOUTH_AND_SPORT]));?></td></tr>
        <tr><th><?php echo __('asociation structures');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_ASOCIATION_STRUCTURES, !empty($arComitee[MyConstants::FORM_COMITEE_ASOCIATION_STRUCTURES]));?></td></tr>
        <tr><th><?php echo __('idea bank');?></th><td><?php echo checkbox_tag('comitee[]', MyConstants::FORM_COMITEE_IDEA_BANK, !empty($arComitee[MyConstants::FORM_COMITEE_IDEA_BANK]));?></td></tr>
        </table>
    </td>
    </tr>

    <tr>
    <th><?php echo __('Other'); ?>:</th>
    <td><?php echo object_input_tag($member, 'getComiteeAdd', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?><br /><br />
    </td>
    </tr>

    <tr>
    <th>2. <?php echo __('Participate in organizational work');?>:</th>
    <td>
        <table>
        <tr><th><?php echo __('expansion');?></th><td><?php echo checkbox_tag('organizational[]', MyConstants::FORM_ORGANIZATIONAL_EXPANSION, !empty($arOrganizational[MyConstants::FORM_ORGANIZATIONAL_EXPANSION]));?></td></tr>
        <tr><th><?php echo __('developement');?></th><td><?php echo checkbox_tag('organizational[]', MyConstants::FORM_ORGANIZATIONAL_DEVELOPEMENT, !empty($arOrganizational[MyConstants::FORM_ORGANIZATIONAL_DEVELOPEMENT]));?></td></tr>
        <tr><th><?php echo __('image creation');?></th><td><?php echo checkbox_tag('organizational[]', MyConstants::FORM_ORGANIZATIONAL_IMAGE_CREATION, !empty($arOrganizational[MyConstants::FORM_ORGANIZATIONAL_IMAGE_CREATION]));?></td></tr>
        <tr><th><?php echo __('organizational work');?></th><td><?php echo checkbox_tag('organizational[]', MyConstants::FORM_ORGANIZATIONAL_ORGANIZATIONAL_WORK, !empty($arOrganizational[MyConstants::FORM_ORGANIZATIONAL_ORGANIZATIONAL_WORK]));?></td></tr>
        <tr><th><?php echo __('search for supliers');?></th><td><?php echo checkbox_tag('organizational[]', MyConstants::FORM_ORGANIZATIONAL_SEARCH_FOR_SUPLIERS, !empty($arOrganizational[MyConstants::FORM_ORGANIZATIONAL_SEARCH_FOR_SUPLIERS]));?></td></tr>
        </table>
    </td>
    </tr>

    <tr>
    <th><?php echo __('Other'); ?>:</th>
    <td><?php echo object_input_tag($member, 'getOrganizationalAdd', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?><br /><br />
    </td>
    </tr>

    <tr>
    <th>3. <?php echo __('help with services');?>:</th>
    <td>
        <table>
        <tr><th><?php echo __('orgtech services');?></th><td><?php echo checkbox_tag('help[]', MyConstants::FORM_HELP_ORGTECH_SERVICES, !empty($arHelp[MyConstants::FORM_HELP_ORGTECH_SERVICES]));?></td></tr>
        <tr><th><?php echo __('copying');?></th><td><?php echo checkbox_tag('help[]', MyConstants::FORM_HELP_COPYING, !empty($arHelp[MyConstants::FORM_HELP_COPYING]));?></td></tr>
        <tr><th><?php echo __('E-social work');?></th><td><?php echo checkbox_tag('help[]', MyConstants::FORM_HELP_E_SOCIAL_WORK, !empty($arHelp[MyConstants::FORM_HELP_E_SOCIAL_WORK]));?></td></tr>
        <tr><th><?php echo __('info spreading');?></th><td><?php echo checkbox_tag('help[]', MyConstants::FORM_HELP_INFO_SPREADING, !empty($arHelp[MyConstants::FORM_HELP_INFO_SPREADING]));?></td></tr>
        <tr><th><?php echo __('transportation');?></th><td><?php echo checkbox_tag('help[]', MyConstants::FORM_HELP_TRANSPORTATION, !empty($arHelp[MyConstants::FORM_HELP_TRANSPORTATION]));?></td></tr>
        <tr><th><?php echo __('events organiozation');?></th><td><?php echo checkbox_tag('help[]', MyConstants::FORM_HELP_EVENTS_ORGANIOZATION, !empty($arHelp[MyConstants::FORM_HELP_EVENTS_ORGANIOZATION]));?></td></tr>
        <tr><th><?php echo __('collecting signups');?></th><td><?php echo checkbox_tag('help[]', MyConstants::FORM_HELP_COLLECTING_SIGNUPS, !empty($arHelp[MyConstants::FORM_HELP_COLLECTING_SIGNUPS]));?></td></tr>
        </table>
    </td>
    </tr>

    <tr>
    <th><?php echo __('Other'); ?>:</th>
    <td><?php echo object_input_tag($member, 'getHelpAdd', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?><br /><br />
    </td>
    </tr>

    <tr>
    <th>4. <?php echo __('during elections'); ?>:</th>
    <td>
        <table>
        <tr><th><?php echo __('work at bases'); ?></th><td><?php echo checkbox_tag('elections[]', MyConstants::FORM_ELECTIONS_WORK_AT_BASES, !empty($arElections[MyConstants::FORM_ELECTIONS_WORK_AT_BASES]));?></td></tr>
        <tr><th><?php echo __('to be watcher'); ?></th><td><?php echo checkbox_tag('elections[]', MyConstants::FORM_ELECTIONS_TO_BE_WATCHER, !empty($arElections[MyConstants::FORM_ELECTIONS_TO_BE_WATCHER]));?></td></tr>
        <tr><th><?php echo __('info spreading'); ?></th><td><?php echo checkbox_tag('elections[]', MyConstants::FORM_ELECTIONS_INFO_SPREADING, !empty($arElections[MyConstants::FORM_ELECTIONS_INFO_SPREADING]));?></td></tr>
        <tr><th><?php echo __('agitational work'); ?></th><td><?php echo checkbox_tag('elections[]', MyConstants::FORM_ELECTIONS_AGITATIONAL_WORK, !empty($arElections[MyConstants::FORM_ELECTIONS_AGITATIONAL_WORK]));?></td></tr>
        </table>
    </td>

    <tr>
    <th><?php echo __('Other'); ?>:</th>
    <td><?php echo object_input_tag($member, 'getElectionsAdd', array (
    'size' => 40,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?><br /><br />
    </td>
    </tr>

    <tr>
    <th><?php echo __('Other important information') ?>:</th>
    <td><?php echo object_textarea_tag($member, 'getOther', array (
    'cols' => 45
    , 'rows' => 6,
    'style' => 'border: solid 1px #dfdfdf;'
    )) ?></td>
    </tr>

    </tbody>
    </table>
    <?php echo submit_tag(
                    __('send')
                    , array(
                        'style' => 'border: solid 1px #dfdfdf; font-family: Arial, Helvetica, sans-serif; font-size: 11px;'
                    )
                ) ?>
    </form>
</div>